package de.tabuma.logging.entity;

import java.util.*;
import javax.jdo.annotations.*;
import java.io.*;

/**
 *
 * @author alefen
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class LogEntry implements Serializable {

    public LogEntry() {
        this.date = GregorianCalendar.getInstance().getTime();
        this.removeObject = false;
    }
    
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Long id;
    public Long getId() {
        return id;
    }

    @Persistent
    Date date;
    public Date getDate() {
        return date;
    }
    public void setDate(Date date) {
        this.date = date;
    }

    @Persistent
    String className;
    public String getClassName() {
        return className;
    }
    public void setClassName(String className) {
        this.className = className;
    }

    @Persistent
    Long objectId;
    public Long getObjectId() {
        return objectId;
    }
    public void setObjectId(Long objectId) {
        this.objectId = objectId;
    }

    @Persistent
    String user;
    public String getUser() {
        return user;
    }
    public void setUser(String user) {
        this.user = user;
    }

    @Persistent
    boolean removeObject;
    public boolean isRemoveObject() {
        return removeObject;
    }
    public void setRemoveObject(boolean removeObject) {
        this.removeObject = removeObject;
    }


}
